<?php

namespace common\models\datas;

use Yii;

/**
 * This is the model class for table "{{%cards_resend}}".
 *
 * @property integer $id
 * @property integer $site_id
 * @property integer $batch_id
 * @property integer $card_send_id
 * @property integer $issuser_id
 * @property string $salesman
 * @property integer $telephone
 * @property integer $number
 * @property integer $cardno_begin
 * @property integer $cardno_end
 * @property integer $proportion
 * @property integer $created_at
 * @property integer $is_delete
 */
class CardsResend extends \common\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%cards_resend}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['site_id', 'batch_id', 'card_send_id', 'issuser_id', 'number', 'cardno_begin', 'cardno_end', 'proportion', 'created_at', 'is_delete'], 'integer'],
            [['salesman','telephone'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('common', '序列'),
            'site_id' => Yii::t('common', '分店id'),
            'batch_id' => Yii::t('common', '所属批次'),
            'card_send_id' => Yii::t('common', '一级发卡id'),
            'issuser_id' => Yii::t('common', '发卡人id'),
            'salesman' => Yii::t('common', '接收人姓名'),
            'telephone' => Yii::t('common', '接收人手机号'),
            'number' => Yii::t('common', '发卡数量'),
            'cardno_begin' => Yii::t('common', '卡开始编号'),
            'cardno_end' => Yii::t('common', '卡结束编号'),
            'proportion' => Yii::t('common', '分成比例'),
            'created_at' => Yii::t('common', '创建时间'),
            'is_delete' => Yii::t('common', '是否删除(0：默认未删除 1:是)'),
        ];
    }
}
